﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gfw.Web.Models.Genealogy
{
    /// <summary>
    /// 我所推荐的会员
    /// </summary>
    public class UserRecommendMemberModel
    {
        #region 基本信息

        /// <summary>
        /// 用户ID
        /// </summary>
        [Key]
        [DataType(DataType.Text)]
        [Display(Name = "用户ID：")]
        public string UserID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "用户名：")]
        public string LoginName { get; set; }

        /// <summary>
        /// 注册顺序号
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "注册顺序号：")]
        public int UserIndex { get; set; }

        /// <summary>
        /// 注册日期
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "注册日期：")]
        public string RegistrationDate { get; set; }

        /// <summary>
        /// 左区/右区（相对自己）
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "区域（相对于自己）：")]
        public string ChildArea { get; set; }

        /// <summary>
        /// 账户激活日期
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "账户激活日期：")]
        public string ActivationDate { get; set; }

        /// <summary>
        /// 账户是否停用
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "账户是否停用：")]
        public bool IsLock { get; set; }

        /// <summary>
        /// 账户停用日期
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "账户停用日期：")]
        public string LockDate { get; set; }

        /// <summary>
        /// 原因
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "原因：")]
        public string LockReason { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "姓名：")]
        public string Name { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "联系电话：")]
        public string Tel { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "联系地址：")]
        public string Address { get; set; }

        /// <summary>
        /// QQ号
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "QQ：")]
        public string QQ { get; set; }

        /// <summary>
        /// 电子邮件
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "电子邮件：")]
        public string Email { get; set; }

        #endregion


        #region 程序逻辑需要

        /// <summary>
        /// 二叉树编码
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "二叉树编码：")]
        public string Code { get; set; }

        /// <summary>
        /// 推荐人编码
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "推荐人编码：")]
        public string RecommenderCode { get; set; }

        /// <summary>
        /// 推荐人ID
        /// </summary>
        //[DataType(DataType.Text)]
        //[Display(Name = "推荐人ID：")]
        //public string RecommenderID { get; set; }

        /// <summary>
        /// 父节点ID
        /// </summary>
        //[DataType(DataType.Text)]
        //[Display(Name = "父节点ID：")]
        //public string ParentID { get; set; }

        /// <summary>
        /// 父节点区位
        /// </summary>
        //[DataType(DataType.Text)]
        //[Display(Name = "父节点区位：")]
        //public int ParentArea { get; set; }

        #endregion
    }
}
